package XML_.dom4j01;

/**
 * @author 宋鑫宇
 * @version 1.0
 */
public class Contact {
    private String name;
    private int id;
    private boolean vip;
    private char sex;
    private String hobby;

    public Contact() {
    }

    public Contact(String name, int id, boolean vip, char sex, String hobby) {
        this.name = name;
        this.id = id;
        this.vip = vip;
        this.sex = sex;
        this.hobby = hobby;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isVip() {
        return vip;
    }

    public void setVip(boolean vip) {
        this.vip = vip;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String email) {
        this.hobby = email;
    }

    @Override
    public String toString() {
        return "Contact{" +
                "name='" + name + '\'' +
                ", id=" + id +
                ", vip=" + vip +
                ", sex=" + sex +
                ", hobby='" + hobby + '\'' +
                '}';
    }
}
